﻿<UserControl x:Class="Peter.Sdw.View.Dialogs.LoginView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:dialogs="clr-namespace:Peter.Sdw.Logic.Dialogs"
             mc:Ignorable="d"
             d:DesignHeight="200"
             d:DesignWidth="300"
             d:DataContext="{d:DesignInstance dialogs:LoginModel}">
   <Grid>
      <Grid.RowDefinitions>
         <RowDefinition Height="Auto" />
         <RowDefinition Height="Auto" />
         <RowDefinition Height="Auto" />
         <RowDefinition Height="Auto" />
         <RowDefinition Height="Auto" />
      </Grid.RowDefinitions>

      <TextBlock Text="Email"
                  Grid.Row="0" />
      <TextBox Text="{Binding Path=Email}"
               Grid.Row="1"
               Margin="0,5"/>
      <TextBlock Text="Password"
                  Grid.Row="2" />
      <PasswordBox Grid.Row="3"
                     Margin="0,5"
                     x:Name="PasswordBox"
                     KeyDown="OnKeyPasswordKeyDown"
                     PasswordChanged="OnPasswordChanged" />
      <CheckBox Grid.Row="4"
                IsChecked="{Binding Path=SaveLoginData}">Save Login</CheckBox>
   </Grid>
</UserControl>
